package com.baizhi.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Order implements Serializable {
    private String orderId;
    private String orderNo;
    private Double total;
    private Date createDate;
    private String orderStatus;
    private String userId;

    private Address address;
    private List<OrderItem> orderItems;
    public Order() {
    }

    public Order(String orderId, String orderNo, Double total, Date createDate, String orderStatus, String userId, Address address, List<OrderItem> orderItems) {
        this.orderId = orderId;
        this.orderNo = orderNo;
        this.total = total;
        this.createDate = createDate;
        this.orderStatus = orderStatus;
        this.userId = userId;
        this.address = address;
        this.orderItems = orderItems;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", total=" + total +
                ", createDate=" + createDate +
                ", orderStatus='" + orderStatus + '\'' +
                ", address=" + address +
                ", orderItems=" + orderItems +
                '}';
    }
}
